﻿using MySqlConnector;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.Service
{
    public partial class PriceTemplateService
    {
        public int SetDefault(Guid id)
        {
            string sql = "update PriceTemplate set isDefault=0; update priceTemplate set isDefault=1 where id=@id";
            MySqlParameter sp = new MySqlParameter("@id", id);
            return  baseRepostory.ExecuteNonQuery(sql,sp);
            
        }
    }
}
